<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>门店管理 - 新增门店</title>
<?php include $this->c['_homes']['_viewsHome'] . '/_global/_head.php';?>
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include $this->c['_homes']['_viewsHome'] . '/_global/head.php';?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" >
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include $this->c['_homes']['_viewsHome'] . '/_global/menu.php';?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR -->
  <!-- BEGIN PAGE -->
  <div class="page-content">
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 新增门店 </h3>
        <ul class="page-breadcrumb breadcrumb">
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 门店管理 <i class="icon-angle-right"></i> </li>
          <li> <a href="/store/storelist">门店列表</a> <i class="icon-angle-right"></i> </li>
          <li>新增门店</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
      </div>
    </div>
    <!-- END PAGE HEADER-->
    <!-- BEGIN PAGE CONTENT-->

    <div class="row">
      <div class="col-md-12">
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <form action="/store/savestore" class="form-horizontal" onSubmit="return chkfrm();" method="post" >
						<input type="hidden" name="act" value="add">
          <div class="tabbable tabbable-custom boxless">
            <div class="tab-content">
              <!--Tab0-->
              <div class="tab-pane active" id="tab_0">
                <div class="portlet box blue ">
                  <div class="portlet-title">
                    <div class="caption"> <i class="icon-reorder"></i> 基本资料 </div>
                  </div>
                  <div class="portlet-body form">
                    <div class="form-body">
                      <div class="form-group">
									<label class="control-label col-md-3">门店名称
										<span class="required">*</span>
									</label>
									<div class="col-md-4">
										<input type="text" name="name" id="_name"  class="form-control" placeholder="门店名称">
									</div>
								</div>
								<div class="form-group">
									<label  class="col-md-3 control-label">门店代码<span class="required"></span></label>
									<div class="col-md-4">
										<input type="text"  name="code" id="_code"  class="form-control" >
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-md-3">门店类型
										<span class="required"></span>
									</label>

									<div class="col-md-4">
										<select name="type" class="form-control">
										<option value="1">直营店</option>
										<option value="2">加盟店</option>
										<option value="3">仓库</option>
									</select>

									</div>
								</div>
				<div class="form-group">
                  <label class="control-label col-md-3">状态
										<span class="required"></span>
									</label>
                  <div class="col-md-4">
                    <label class="radio-inline">
                    <div id="uniform-optionsRadios4" class="radio">
                      <input name="stat" id="optionsRadios4" value="1" checked type="radio">
                      </div>
                    <span class="label label-success">正常</span>
                    </label>
                    <label class="radio-inline">
                    <div id="uniform-optionsRadios5" class="radio">
                      <input name="stat" id="optionsRadios5" value="2" type="radio">
                      </div>
                    <span class="label label-danger">禁用</span>
                    </label>
                  </div>
                </div>

                    </div>
                    <div class="form-actions fluid">
                      <div class="col-md-offset-3 col-md-9">
                        <button class="btn green" id="tj" type="submit">提交</button>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </form>
        <!-- END SAMPLE FORM PORTLET-->
      </div>
    </div>
    <!-- END PAGE CONTENT-->
  </div>
  <!-- END PAGE -->
  <input type="hidden" id="_phone_stat" value="0">
</div>
<!-- END CONTAINER -->
<?php include $this->c['_homes']['_viewsHome'] . '/_global/_footer.php';?>
<script>
	jQuery(document).ready(function() {    
	   App.init();
	});
</script> 
<script type="text/javascript">
function chkfrm(){
	if($("#_name").prop("value")==""){
		alert("请填写门店名称");
		$("#_name").focus();
		return false;
	}	
}
</script> 
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>